import { Expose } from 'class-transformer';

export class UserInfoDto {
  @Expose()
  public id: string;

  @Expose()
  public deptId: string;

  @Expose()
  public account: string;

  @Expose()
  public nickName: string;

  @Expose()
  public email: string;

  @Expose()
  public avatarUrl: string;

  @Expose()
  public phone: string;

  @Expose()
  public createTime: string;

  @Expose()
  public updateTime: string;
}

export class AuthUserInfoDto extends UserInfoDto {
  @Expose()
  public authorities?: any[];

  @Expose()
  public roles?: any[];
}
